package com.inetlab.carnetvisualizer.utils;

import com.inetlab.carnetvisualizer.entity.ServerResult;

import java.util.Date;
import java.util.Random;

public class ResultGenerator {
    public ServerResult generate(String ue_id, String host){
        ServerResult serverResult = new ServerResult();
        serverResult.setUe_id(ue_id);
        serverResult.setHost(host);
        serverResult.setAverageDataRate(new Random().nextFloat());
        serverResult.setCurrentDataRate(new Random().nextFloat());
        serverResult.setBler(new Random().nextFloat());
        serverResult.setDatetime(new Date());
        return serverResult;
    }
}
